package com.gym.client;

import com.gym.vo.EquimenttypeVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(name = "gateway",path = "/equipment-provider",contextId = "equipmenttype")
public interface EquipmenttypeClient {


    /**
     * 查询所有分类信息
     * @return
     */
    @GetMapping("/selAllType")
    public List<EquimenttypeVo> selAllType();

    /**
     * 查询各类健身器材的比重
     * @return
     */
    @GetMapping("/selEquTypeNums")
    public List<EquimenttypeVo> selEquTypeNums();

}
